<template>
  <div class="movie">
    <h2>Movie</h2>
    <p>Count的值{{ count }}</p>
    <p>price{{ totalPrice }}</p>
  </div>
</template>

<script>
import { mapGetters, mapState } from "vuex";
export default {
  name: "Movie",
  computed: {
    ...mapState(["count"]),
    ...mapGetters(["totalPrice"]),
  },
};
</script>

<style>
.movie {
  background-color: cyan;
}
</style>